#!/usr/bin/env python
# -*- coding: utf-8 -*-

import logging

debug = ''
log = None

def Pass(*args):
    pass

class fytionException(Exception):
    """Base class for all exceptions
    """
    def __init__(self, code, msg):
        self.args = (code,msg)

if debug == "TERM":
	logging.basicConfig(level=logging.DEBUG,
				format='%(asctime)s %(lineno)d %(funcName)s  %(message)s',
				)
	log = logging.debug
elif debug == "FILE":
	logging.basicConfig(level=logging.DEBUG,
			format='Line:%(lineno)d Fun:%(funcName)s  %(message)s',
				filename='./PyFetion.log',
				filemode='w')
	log = logging.debug
else:
	log = Pass

